FUNCTION
abs
Returns the absolute value of a integer value; i.e. the value itself if it's positive or its negation if it's negative.
Parameters
- a — the integer for which to determine an absolute value
Returns
the absolute value of the argument
Since
0.6.0
function abs(a: big_integer): big_integerReturns the absolute value of a big_integer value; i.e. the value itself if it's positive or its negation if it's negative.
Parameters
- a — the big_integer for which to determine an absolute value
Returns
the absolute value of the argument
Since
0.12.0
Returns the absolute value of a decimal value; i.e. the value itself if it's positive or its negation if it's negative.
Parameters
- a — the decimal for which to determine an absolute value
Returns
the absolute value of the argument
Since
0.9.1
© 2026 Chromia